package com.cowin.sys.service.impl;


import com.cowin.sys.dao.TmSysUserMapper;
import com.cowin.sys.model.TmSysUser;
import com.cowin.sys.service.TmSysUserService;
import com.cowin.base.AbstractServiceImpl;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created by  on 2019/09/18.
 *
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class TmSysUserServiceImpl extends AbstractServiceImpl<TmSysUser> implements TmSysUserService {

    @Resource
    private TmSysUserMapper tmSysUserMapper;


    @Override
    public TmSysUser findUserByUserName(String username) {
        return tmSysUserMapper.findUserByUserName(username);
    }
}
